
 
<!DOCTYPE html>
<html>
 <head>
  
  <title>About</title>
  
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
  <style>
  .table{
   width:90%;
   

  }
  </style>
 </head>
  <body>
  <table class="table table-striped">
  <caption>客户信息列表</caption>
  <thead>
    <tr>
      <th>编号</th>
      <th>姓名</th>
      <th>密码</th>
      <th>性别</th>
      <th>地址</th>
      <th>电话</th>
     
    </tr>
  </thead>
  <tbody>
    <tr>
     
    @foreach($types as $type)

<tr>
<td>{{$type->userid}}</td>
<td>{{$type->username}}</td>
<td>{{$type->password}}</td>
<td>{{$type->sex}}</td>
<td>{{$type->address}}</td>
<td>{{$type->tel}}</td>

<!-- <td><a herf="/admin/user/{{$type->userid}}/edit">修改</a></td> -->
<form action="/admin/user/{{$type->userid}}" method="post">

@method("delete")
<td><button type="submit" class="btn btn-dark">删除</button></td>
</form>



 <td>
  @method("put")
<form action="/admin/user/{{$type->userid}}/edit" method="get">
<td>
<button type="submit" class="btn btn-dark">修改</button></td>
</form></td> 

</tr>



@endForeach
 </tr>
  
 
</tbody>
</table>
{{$types->links()}}

<form action="/admin/user/create" method="get" accept-charset="utf-8">
 <button type="submit" class="btn btn-dark" value="submit">添加</button>

 </form> 
  </body>
</html>
